package ucm;

import java.sql.SQLException;
import model.Flight;

/**
 * UCRegisterFlight
 *
 * Goal: Add Flight to database
 * Primary Actor: User
 * Precondition: Connected to database. manager is logged in.
 * Postcondtion: flight is added to database
 * 
 * @author Tobias Robinson
 */
public class UCRegisterFlight {

    public UCRegisterFlight() throws SQLException {
        run();
    }

    /**
     * 1. Actor selects Add Flight.
     * 2. The system requests the actor to enter flight info.
     * 4. System verifies user input.
     * 5. System updates flight info.
     * 6. System notifies actor flight has been added.
     */
    public void run() throws SQLException{
        Flight.loadRegisterFlightView();
    }

}
